import React, { memo, useEffect } from 'react'
import SensorAllLayer from './openlayersComponents/sensorAllLayer'
import HighValuePointTvoc from './openlayersComponents/highValuePointTvoc'
import StandardStationLayer from './openlayersComponents/standardStationLayer'

export default memo((props) => {
  switch (props.layerId) {
    case 'sensorAllLayer':
      return <SensorAllLayer {...props}></SensorAllLayer>
    case 'standardStationLayer_1':
    case 'standardStationLayer_2':
    case 'standardStationLayer_3':
      return <StandardStationLayer {...props}></StandardStationLayer>
    case 'highValuePointTvoc':
    case 'navigationHighValueVocs':
      return <HighValuePointTvoc {...props}></HighValuePointTvoc>
    default:
      return []
  }
})
